//
//  GenericController.h
//  iCodeMac
//
//  Created by Andrew Barry on 28/02/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface GenericController : NSObject {
	NSMutableArray *controls;
	NSMutableArray *controlTypes;
	NSMutableArray *properties;
}
-(id) init;
-(void) bindCheckbox: (NSButton *) check toProperty: (NSString *) name;
-(void) bindText: (NSTextField *) field toProperty: (NSString *) name;
-(void) bindInt: (NSTextField *) field toProperty: (NSString *) name;
-(void) bindPopup: (NSPopUpButton *) field toProperty: (NSString *) name;
-(void) bindDataSource: (NSPopUpButton *) field toProperty: (NSString *) name;
-(void) bindColorWell: (NSColorWell *) field toProperty: (NSString *) name;
-(void) updateValue: (id) val forProperty: (NSString*) key;

@end
